package com.fei.BYSJ.dao;

import com.fei.BYSJ.entity.Order;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);
    Order selectAllOrderByPrimaryKey(Integer id);

    List<Order> selectAllUnFinishOrder(int userId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int countOrderByPeoele(int userId);

    List<Order> selectByUserID(int userid);

    List<Order> selectAcceptOrdersByUserID(int userId);

    List<Order> selectFinishOrdersByUserID(int userId);

    List<Order> selectAllUnAcceptOrder();

    List<Order> selectReleaseOrderlists(Integer userid);

    List<Order> selectAllOrder(Map<String,Object> params);

    List<Order> selectALLComplainOrder(Integer userid);

    List<Order> totalselectAllOrder(Map<String, Object> params);

    int countOrderByDay(Date time);

    Order selectByOrderNum(int parseInt);
}